import {NavigationGuardNext,RouteLocation} from 'vue-router'

export default function interceptor(to:RouteLocation,_:RouteLocation,next:NavigationGuardNext){
    if(to.meta.nologin){
        next()
    }else{
        let token = 'test';
        if(token){
            next()
        } else{
            next('/login')
        }
        
    }
}